<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="HTML_TEXT_FIELD_MAX_LENGTH" />
<atleap:javascript formName="userForm" staticJavascript="false" dynamicJavascript="true" method="validateForm" cdata="false" />
<atleap:content identifier="information" ignore="true" uri="/core/user/callCreate"/>
<atleap:form action="core/user/create" method="POST">
    <atleap:messages property="userAlreadyExists" /><br />
    <table cellpadding="0"  cellspacing="0" border="0" class="modificationTable">
        <tr>
            <th>
                <atleap:label property="name" key="core.user.form.name" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="name" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" styleClass="text" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="password" key="core.user.form.password" colon="false" helpTip="true" />
            </th>
            <td>
                <html:password redisplay="false" property="password" styleClass="text" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="confirmPassword" key="core.user.form.confirmPassword" colon="false" helpTip="true" />
            </th>
            <td>
                <html:password redisplay="false" property="confirmPassword" styleClass="text" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="email" key="core.user.form.email" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="email" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="firstName" key="core.user.form.firstName" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="firstName" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="lastName" styleClass="label" key="core.user.form.lastName" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="lastName" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}"/>
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="address" styleClass="label" key="core.user.form.address" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="address" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}"/>
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="city" styleClass="label" key="core.user.form.city" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="city" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}"/>
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="province" styleClass="label" key="core.user.form.province" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="province" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="country" styleClass="label" key="core.user.form.country" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="country" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}"/>
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="postalCode" styleClass="label" key="core.user.form.postalCode" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="postalCode" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="phoneNumber" styleClass="label" key="core.user.form.phoneNumber" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="phoneNumber" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}"/>
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="website" styleClass="label" key="core.user.form.website" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="website" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
            </td>
        </tr>
    </table>
    <html:hidden property="updatePassword" value="dummyPassword" />
    <html:hidden property="updateConfirmPassword" value="dummyPassword" />

    <atleap:submit styleClass="button" disableButtonOnSubmit="false"><atleap:message key="core.commons.buttons.signup" /></atleap:submit>
    <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.cancel" /></atleap:cancel>
</atleap:form>
